<template>
	<view class="content">
		<view @click="imgClick">
			 <slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			list:Array,
			i:Number
		},
		data() {
			return {
				title: '2'
			}
		},
		mounted() {
         
		},
		methods: {
           imgClick(){
			   //存入缓存
			   getApp().globalData.list = this.list
			   getApp().globalData.i = this.i
			   //跳转到详情页面
			   uni.navigateTo({
				   url:'/pages/imgDetal/index'
			   })
		   }
		}
	}
</script>

<style lang='less'>

</style>
